package com.foreknow.demo2;

public class LoopDemo {
    public static void main(String[] args) {
        int i = 1;
        int sum = 0;
        for (i = 1;i <= 100;i++){
            sum+=i;
        }
        System.out.println(sum);
    }
}
